// +----------------------------------------------------------------------
// | 一条可自定义的线
// +----------------------------------------------------------------------

import 'package:flutter/material.dart';
import 'package:qgchat/common/global/global.dart';


class Line extends StatelessWidget {

  Line({
    Key key,
    this.height = 1.0,
    this.margin,
    this.color = 'edeff2'
  });

  final double height;
  final EdgeInsetsGeometry margin;
  final String color;

  @override
  Widget build(BuildContext context) {
    return Container(
      width: w100(context),
      height: px(height),
      color: col(color),
      margin: margin,
    );
  }
}
